function columns(vm) {
  const cols = [
    {
      key: 'rowIndex',
      width: 80,
      align: 'left',
      slots: { title: 'rowIndex' },
      customRender: function (t, r, index) {
        return parseInt(index) + 1
      },
      fixed: 'left',
    },
    {
      title: '单位详细名称',
      align: 'left',
      dataIndex: 'companyName',
      slots: { title: 'customTitle' },
      scopedSlots: {customRender: 'companyName'},
      width: 150,
      key: 'companyName',
      fixed: 'left',
    },
    {
      title: '合规性问题（金额类：万元）',
      align: 'left',
      children: [
        {
          title: '合计',
          align: 'left',
          width: 110,
          dataIndex: 'a1',
          scopedSlots: {customRender: 'a1'},
          key: 'a1'
        },
        {
          title: '会计核算方面',
          align: 'left',
          width: 110,
          dataIndex: 'a2',
          scopedSlots: {customRender: 'a2'},
          key: 'a2'
        },
        {
          title: '违规取得收入',
          align: 'left',
          width: 110,
          dataIndex: 'a3',
          scopedSlots: {customRender: 'a3'},
          key: 'a3'
        },{
          title: '超计价拨款',
          align: 'left',
          width: 110,
          dataIndex: 'a4',
          scopedSlots: {customRender: 'a4'},
          key: 'a4'
        },{
          title: '偷漏税费',
          align: 'left',
          width: 110,
          dataIndex: 'a5',
          scopedSlots: {customRender: 'a5'},
          key: 'a5'
        },{
          title: '侵占所有者权益',
          align: 'left',
          width: 120,
          dataIndex: 'a6',
          scopedSlots: {customRender: 'a6'},
          key: 'a6'
        },{
          title: '投资收益不实',
          align: 'left',
          width: 110,
          dataIndex: 'a7',
          scopedSlots: {customRender: 'a7'},
          key: 'a7'
        },{
          title: '违规投资担保借款',
          align: 'left',
          width: 130,
          dataIndex: 'a8',
          scopedSlots: {customRender: 'a8'},
          key: 'a8'
        },{
          title: '少计资产价值',
          align: 'left',
          width: 110,
          dataIndex: 'a9',
          scopedSlots: {customRender: 'a9'},
          key: 'a9'
        },{
          title: '侵占公司资产',
          align: 'left',
          width: 110,
          dataIndex: 'a10',
          scopedSlots: {customRender: 'a10'},
          key: 'a10'
        },{
          title: '账外资产',
          align: 'left',
          width: 110,
          dataIndex: 'a11',
          scopedSlots: {customRender: 'a11'},
          key: 'a11'
        },{
          title: '违规使用资金',
          align: 'left',
          width: 110,
          dataIndex: 'a12',
          scopedSlots: {customRender: 'a12'},
          key: 'a12'
        },{
          title: '截留、沉淀资金',
          align: 'left',
          width: 120,
          dataIndex: 'a13',
          scopedSlots: {customRender: 'a13'},
          key: 'a13'
        },{
          title: '挪用资金',
          align: 'left',
          width: 110,
          dataIndex: 'a14',
          scopedSlots: {customRender: 'a14'},
          key: 'a14'
        },{
          title: '损失浪费',
          align: 'left',
          width: 110,
          dataIndex: 'a15',
          scopedSlots: {customRender: 'a15'},
          key: 'a15'
        },{
          title: '其他',
          align: 'left',
          width: 110,
          dataIndex: 'a16',
          scopedSlots: {customRender: 'a16'},
          key: 'a16'
        }
      ]
    },
    {
      title: '问题数量（非金额类：个）',
      align: 'left',
      children: [
        {
          title: '合计',
          align: 'left',
          width: 110,
          dataIndex: 'a17',
          scopedSlots: {customRender: 'a17'},
          key: 'a17'
        },
        {
          title: '国家政策措施落实方面',
          align: 'left',
          width: 160,
          dataIndex: 'a18',
          scopedSlots: {customRender: 'a18'},
          key: 'a18'
        },
        {
          title: '发展规划与决策落实方面',
          align: 'left',
          width: 180,
          dataIndex: 'a19',
          scopedSlots: {customRender: 'a19'},
          key: 'a19'
        },
        {
          title: '内部控制与风险管理方面',
          align: 'left',
          width: 180,
          dataIndex: 'a20',
          scopedSlots: {customRender: 'a20'},
          key: 'a20'
        },
        {
          title: '其他',
          align: 'left',
          width: 110,
          dataIndex: 'a21',
          scopedSlots: {customRender: 'a21'},
          key: 'a21'
        }
      ],
    },
  ]
  return cols
}

export default columns